package com.example.drive.admin.mapper;

import com.example.drive.admin.pojo.entity.Admin;
import com.example.drive.audit.pojo.entity.Audit;
import com.example.drive.admin.pojo.entity.Detail;
import com.example.drive.student.pojo.entity.Student;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AdminMapper {
    Admin getByName(String name);

    Student getByStuName(String name);

    Audit getByAuName(String name);

    int register(Student student);

    int update(Admin admin);

    Detail getDetail(Integer id);

    int saveDetail(Detail detail);
}
